
package com.welsy.user.business
{
	import com.adobe.cairngorm.business.ServiceLocator;
	
	import mx.rpc.AbstractOperation;
	import mx.rpc.AsyncToken;
	import mx.rpc.IResponder;
	import mx.rpc.soap.mxml.WebService;
		

	/**
	 * @version	$Revision: 1.1 $
	 */
	public class GetIterElementsFromIterDelegate
	{
		public function GetIterElementsFromIterDelegate( responder : IResponder )
		{		
			this.service = ServiceLocator.getInstance().getWebService("TrackService") as WebService;
			this.responder = responder;
		}
		
		public function getIterElements(userId : String, iterId : String, roleId : String, status : String) : void
		{	
			//Create the request
			var op : AbstractOperation = service.getOperation("GetIterElementsFromIter");
			op.arguments.GetIterElementsRequest.UserId = userId;
			op.arguments.GetIterElementsRequest.IterId = iterId;
			op.arguments.GetIterElementsRequest.RoleId = roleId;
			op.arguments.GetIterElementsRequest.Status = status;
			
			var token : AsyncToken = service.GetIterElementsFromIter();
			token.addResponder(responder);
		}
	
		private var responder : IResponder;
		private var service : WebService;
	}

}